package com.system.common.util;

import org.apache.commons.collections4.CollectionUtils;

import java.util.List;

public class EntityUtil {
    private EntityUtil(){}

    public static<T> T getFirst(List<T> list){
        if(CollectionUtils.isNotEmpty(list)){
            return list.get(0);
        }
        return null;
    }
}
